package com.hontech.kaltaapp.device


fun execErrMsg(ec: Int): String {
    return when (ec) {
        0 -> "正常"
        0x01 -> "FLASH ERR"
        0x02 -> "STORE_SUM_FAIL"
        0x03 -> "解析参数错误"
        0x04 -> "无效的参数"
        0x05 -> "OTA_ID_INVALID"
        0x06 -> "OTA_MD5_INVALID"
        0x07 -> "OTA_PKG_INVALID"
        0x08 -> "门打开错误"
        0x09 -> "喷嘴堵转"
        0x0A -> "喷嘴超时"
        0x0B -> "扫码超时"
        0x0C -> "扫码返回值错误"
        0x0D -> "抽水超时"
        0x0E -> "流量计异常"
        0x0F -> "瞬热器加热超时"
        else -> "未知错误:$ec"
    }
}


